//
//  BaseScrollView.h
//  智云题库
//
//  Created by 毕武侠 on 2017/4/16.
//  Copyright © 2017年 bwx. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface BaseScrollView : UIScrollView

#pragma mark - load data
- (void)setupLoadDataWithUrl:(NSString *)url params:(NSDictionary *)params model:(NSString *)model;
@property (nonatomic, strong) RACSignal *sendSignal;        // 请求Signal 方式一
@property (nonatomic, strong) RACSignal *receiveSignal;     // 接受Signal
@property (nonatomic, strong) RACSignal *errorSignal;       // 接受Signal

// 方式二, 请求
- (void)loadData;
- (void)loadDataShowLoadingView:(BOOL)showLoadingView;
- (void)loadDataWithParams:(NSDictionary *)params;
- (void)loadDataWithParams:(NSDictionary *)params showLoadingView:(BOOL)showLoadingView;

#pragma mark - empty view
- (void)showEmptyView;
- (void)showEmptyView:(BOOL)show;

- (void)showNotNetworkView;
- (void)showNotNetworkView:(BOOL)show;
- (void)showEmptyViewWithTitle:(NSString *)title image:(NSString *)image show:(BOOL)show;


@end
